(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.AdminUserEditModel = (function(_super) {

    __extends(AdminUserEditModel, _super);

    function AdminUserEditModel() {
      return AdminUserEditModel.__super__.constructor.apply(this, arguments);
    }

    AdminUserEditModel.prototype.defaults = {
      UserId: 0,
      Email: '',
      Login: '',
      Status: 0,
      Password: '',
      ConfirmPassword: '',
      Avatar: '',
      SuccessMessage: ''
    };

    AdminUserEditModel.prototype.url = function() {
      return encodeURI(SiteMap.Admin.Users.Edit + "?userId=" + this.attributes.UserId);
    };

    AdminUserEditModel.prototype.parse = function(response) {
      var attrs;
      attrs = {};
      attrs.Email = response.Email;
      attrs.Login = response.Login;
      attrs.Status = response.Status;
      if (response.Avatar != null) {
        attrs.Avatar = response.Avatar;
      }
      return attrs;
    };

    return AdminUserEditModel;

  })(Backbone.Model);

}).call(this);
